package com.juyu.reader.pc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.juyu.reader.pc.dao.CommentDao;
import com.juyu.reader.pc.model.Comment;

@Service
public class CommentService {
	@Autowired
	public CommentDao commentDao;

	public List<Comment> findComment(Comment comment) {
		return commentDao.findComment(comment);
	}

	public int countComment(Comment comment) {
		return commentDao.countComment(comment);
	}

	public int insertComment(Comment comment) {
		return commentDao.insertComment(comment);
	}
}
